# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=savvycan
pkgver=1.0.245
pkgrel=1
pkgdesc="Qt-based CAN bus analysis tool"
url="https://github.com/collin80/SavvyCAN"
license="MIT"
arch="all !armhf" # qt5-qtserialbus
makedepends="
	qt5-qtbase-dev
	qt5-qtserialbus-dev
	qt5-qtserialport-dev
	qt5-qtdeclarative-dev
	qt5-qttools-dev
	"
source="
	$pkgname-$pkgver.tgz::https://github.com/collin80/SavvyCAN/archive/refs/tags/$pkgver.tar.gz
	10-qmake-prefix.patch
	"
builddir="$srcdir/SavvyCAN-$pkgver"

build() {
	qmake-qt5 PREFIX=/usr
	make
}

check() {
	make check
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="
54d63dc57739df53529f1c3c451f9b24f56477145589339b6cd26b475f08f90ca1a0b986fe72a174f90bd00664412ac7b40b3ed318a628642e44da6d74c1eef5  savvycan-1.0.245.tgz
4f5c0846d77e30490fe0efdcbcbb352278b926c7f757111b500b40b6cd14b2003a72acdf70164f34ca31447c380fabecccd3512285717ffaa9269ef39491e9ab  10-qmake-prefix.patch
"
